export default {
    menumock: (options) => {
        // console.log(3, options);
        let { role } = JSON.parse(options.body)
        // 根据不同得角色 返回不同得菜单数据
        if (role == '管理员') {
            return {
                code: 200,
                msg: '请求成功',
                data: [
                    {
                        path: 'leaveapprove',
                        name: 'Leaveapprove',
                        meta: {
                            title: '请假审批',
                            icon: 'el-icon-help'
                        }
                    },
                    {
                        path: 'leavemanage',
                        name: 'Leavemanage',
                        meta: {
                            title: '请假管理',
                            icon: 'el-icon-picture-outline'
                        }
                    },
                    {
                        path: 'myleave',
                        name: 'Myleave',
                        meta: {
                            title: '我要请假',
                            icon: 'el-icon-camera'
                        }
                    }
                ]
            }
        } else if (role == '普通用户') {
            return {
                code: 200,
                msg: '请求成功',
                data: [
                    {
                        path: 'myleave',
                        name: 'Myleave',
                        meta: {
                            title: '我要请假',
                            icon: 'el-icon-camera'
                        }
                    }
                ]
            }
        }
    }
}